import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import VUEX_NAME from './constants.vue'

Vue.use(Vuex)

const state = {
    [VUEX_NAME.isLoading]: false,

    [VUEX_NAME.tankerList]:[],//我的加油机列表
    [VUEX_NAME.cardList]:[],//我的ic卡
    [VUEX_NAME.filterCardList]:[],//我的ic卡
    [VUEX_NAME.searchCardList]:[],

    [VUEX_NAME.myInfo]: '',
    [VUEX_NAME.cardFlowList]: [],
    [VUEX_NAME.cardFlowListBy]: [],

    [VUEX_NAME.currentCardId]: '',

    [VUEX_NAME.sessionId]: '',

    [VUEX_NAME.verifySessionId]: '',

    [VUEX_NAME.orderList]: [],

    [VUEX_NAME.mainOrderList]: [],

    [VUEX_NAME.findPwdObj]: {},


}

export default new Vuex.Store({
    state,
    mutations,
})
